Mac Native Single-line Field
Type
widget
Summary
This widget wraps the native NSTextField on Mac. Since this is a single-line field, the return key does not enter a new line, instead it triggers the returnKey action and the contents of the field is selected.
Description
This widget wraps the native NSTextField on Mac. Since this is a single-line field, the return key does not enter a new line, instead it triggers the returnKey action and the contents of the field is selected.
Compatibility and Support
OS
mac
Associated Syntax
Property
| Name | Summary | Syntax | 
|---|---|---|
| enabled | The enabled state of the text field | set the enabled of <widget> to {true | false} get the enabled of <widget> | 
| showFocusBorder | Whether the text field has a focus border or not | set the showFocusBorder of <widget> to { true | false } get the showFocusBorder of <widget> | 
| showBorder | Whether the text field has a border or not | set the showBorder of <widget> to { true | false } get the showBorder of <widget> | 
| text | The text displayed by the widget | set the text of <widget> to <pText> get the text of <widget> | 
Message
| Name | Summary | Syntax | 
|---|---|---|
| returnKey | Sent when the user presses the return key | on returnKey |